package com.orangeumbrella;

import com.guyj.base.ItemViewDelegate;
import com.guyj.base.ViewHolder;
import com.orangeumbrella.entity.WorkDayBean;

/**
 * 工作日
 */
public class DelegateWorkday implements ItemViewDelegate<Object> {
    @Override
    public int getItemViewLayoutId() {
        return R.layout.item_workday;
    }

    @Override
    public boolean isForViewType(Object o, int i) {
        return o instanceof WorkDayBean;
    }

    @Override
    public void convert(ViewHolder viewHolder, Object o, int i) {
        viewHolder.setText(R.id.tv_workday, ((WorkDayBean) o).getWorkday());
    }
}
